<?php


namespace app\validate;


use think\Validate;

class Image extends Validate
{
    protected $rule=[
        'image'=>'filesize:1024000|fileExt:jpg,jpeg,png'
        ];
    protected $message=[
        'image.filesize'=>'头像文件过大',
        'image.fileExt'=>'头像后缀不符合要求',
    ];
}